import request from '@/utils/request'

// 查询异常日志列表
export function listErrLog(query) {
  return request({
    url: '/device/errLog/list',
    method: 'get',
    params: query
  })
}

// 查询异常日志详细
export function getErrLog(id) {
  return request({
    url: '/device/errLog/' + id,
    method: 'get'
  })
}

// 新增异常日志
export function addErrLog(data) {
  return request({
    url: '/device/errLog',
    method: 'post',
    data: data
  })
}

// 修改异常日志
export function updateErrLog(data) {
  return request({
    url: '/device/errLog',
    method: 'put',
    data: data
  })
}

// 删除异常日志
export function delErrLog(id) {
  return request({
    url: '/device/errLog/' + id,
    method: 'delete'
  })
}
